package com.xc.hotelmgr.datahandlermt.service.mybatis.impl;

import com.xc.hotelmgr.datahandlermt.mapper.DtMtCodeMapper;
import com.xc.hotelmgr.datahandlermt.pojo.mybatis.DtMtCode;
import com.xc.hotelmgr.datahandlermt.service.mybatis.DtMtCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DtMtCodeServiceImpl implements DtMtCodeService {

    @Autowired
    DtMtCodeMapper dtMtCodeMapper;

    @Override
    public List<DtMtCode> listAll() {
        return dtMtCodeMapper.listAll();
    }

    @Override
    public List<DtMtCode> getIds(int size){
        return dtMtCodeMapper.getIds(size);
    }

    @Override
    public DtMtCode getById(Integer id) {
        return null;
    }

    @Override
    public int insert(DtMtCode dtMtCode) {
        return dtMtCodeMapper.insert(dtMtCode);
    }

    @Override
    public int insertIgnoreNull(DtMtCode dtMtCode) {
        return dtMtCodeMapper.insertIgnoreNull(dtMtCode);
    }

    @Override
    public int update(DtMtCode dtMtCode) {
        return 0;
    }

    @Override
    public int updateIgnoreNull(DtMtCode dtMtCode) {
        return 0;
    }

    @Override
    public int delete(DtMtCode dtMtCode) {
        return 0;
    }
}
